package com.tmy.entity;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;

@Data
@TableName(value = "tab_room",autoResultMap = true)
public class RoomInfo {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;//房间id
    private Integer hotelId;//酒店id
    private String roomName;//房间名称
    private Integer roomNumber;//房间号
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONArray imageList;//房间图片
    private Double price;//单价
    private Integer status;//房间状态
    private String remaker;//备注
    private String score;//评分
    private Integer review;//评论数
    private String label;//评论标签
    private Integer grade;//等级
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONArray deviceList;//设备及标签
    private String description;//描述
    @TableField(exist = false)
    private Boolean collectStatus;//收藏状态
    @TableField(exist = false)
    private JSONObject hotelInfo;//酒店信息
}
